<?php


namespace app\crm\controller;

// use app\BaseController as BaseController;
use app\mini\model\PersonCustomer as PersonCustomerModel;
use think\response\Json;


class PersonCustomer extends Access
{
    /**
     * 员工负责客户列表
     * @return Json
     * @author hz
     * @create 2021-10-26
     */
    public function index(): Json
    {
        $this->param = request()->param();
        $personCustomerModel = new PersonCustomerModel();
        $this->param['customer_id'] = $this->customerId;// 员工端则为员工id
        $data = $personCustomerModel->getCustomerList($this->param);
        return resultArray($data);
    }
}